<?php

namespace app\index\model;

use think\Model;

class CertModel extends Model
{

    protected $table = 'newzs_cert';

    protected $pk = 'id';

    // 证书信息
    static public function get_info_by_pk($id)
    {
        return self::where('id',$id)->find();
    }


    // 岗位
    static public function get_place()
    {
        return ['项目经理','项目技术负责人','施工员','安全员','质检员','材料员','造价员','测量员'
            ,'资料员','取样员','机械员','劳务员'];
    }

}

